/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package common;

import java.io.OutputStream;
import java.io.File;
import java.net.Socket;

/**
 *
 * @author Mateusz
 */
public class FileSender {

    public void start(Socket socket, File file) {
        try {
            OutputStream os = socket.getOutputStream();
            ByteStream.toStream(os, file);
        } catch (Exception ex) {
            ex.printStackTrace();
        }
    }
}
